package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class UpdateTarget implements SetTarget {

    private int beginIndex;
    private int endIndex;
    private Identifier objectColumn;
    private SimpleValueSpecification simpleValueSpecification;

    public UpdateTarget(int endIndex,
                        Identifier objectColumn,
                        SimpleValueSpecification simpleValueSpecification) {
        this.beginIndex = objectColumn.getBeginIndex();
        this.endIndex = endIndex;
        this.objectColumn = objectColumn;
        this.simpleValueSpecification = simpleValueSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getObjectColumn() {
        return objectColumn;
    }

    public SimpleValueSpecification getSimpleValueSpecification() {
        return simpleValueSpecification;
    }

}
